#define  _CRT_SECURE_NO_WARNINGS
#include<string.h>
#include<iostream>
#include<map>
using namespace std;
  
void test01()
{
	map<int, int>m1;
	m1.insert(pair<int, int>(1, 10));
	m1.insert(make_pair(2, 20));
	m1.insert(pair<int, int>(3,30));
	m1.insert(pair<int, int>(4,30));
	map<int, int>::iterator it = m1.find(3);
	if (it != m1.end())
	{
		cout << "zhaodao" << it->first << it->second << endl;
	}
	else
	{
		cout << "weizhaodao" << it->first << it->second << endl;
	}
	multimap<int, int>m2;
	m2.insert(pair<int, int>(1, 10));
	m2.insert(make_pair(2, 20));
	m2.insert(pair<int, int>(3, 30));
	m2.insert(pair<int, int>(3, 30));
	cout << m2.count(3) << endl;
}

int main()
{
	test01();
	return 0;

}